package com.xgsm.Fmmall.controller;

import com.xgsm.Fmmall.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value = "提供商品添加、修改、删除及查询的相关接口", tags = "商品管理")
@RequestMapping("/goods")
public class GoodsController {
    @ApiOperation(value = "商品添加功能")
    @PostMapping(value = "/add")
    public ResultVo addGoods() {
        return null;
    }

    @ApiOperation(value = "商品删除功能")
    @DeleteMapping(value = "/delete/{gid}")
    public ResultVo addGoods(@PathVariable("gid") int gid) {
        System.out.println(gid);
        return null;
    }

    @ApiOperation(value = "商品修改功能")
    @PutMapping(value = "/update")
    public ResultVo updateGoods() {
        return null;
    }

    @ApiOperation(value = "商品查询功能")
    @GetMapping(value = "/get")
    public ResultVo getGoods() {
        return null;
    }
}
